package com.chen.authserver.exception;

public class ServiceException extends Exception {

    private String code;

    private String errorMsg;

    public ServiceException(String code, String msg) {
        super("ERRORCODE  : " + code + " ERRORMSG :" + msg);
        this.code = code;
        this.errorMsg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
